/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.qihoopp.framework.LogUtil;

public final class ac extends LinearLayout {
    private Activity a;
    private bi b;
    private TextView c;

    public ac(Activity paramActivity) {
        super(paramActivity);
        this.a = paramActivity;
        this.b = bi.a(this.a);
        this.b.a(this, "bg_errornote.9.png");
        (paramActivity = new RelativeLayout.LayoutParams(-2, cz.a(this.a, 33.5F))).addRule(9, -1);
        setLayoutParams(paramActivity);
        (paramActivity = new LinearLayout.LayoutParams(-2, -2)).gravity = 16;
        this.c = new TextView(this.a);
        this.c.setSingleLine();
        this.c.setLayoutParams(paramActivity);
        this.c.setTextSize(12.0F);
        this.c.setTextColor(-2555904);
        addView(this.c);
        setVisibility(4);
    }

    public final void a(int paramInt1, int paramInt2, String paramString) {
        int i = cz.a(this.a, 33.5F) - 10;
        RelativeLayout.LayoutParams localLayoutParams;
        (localLayoutParams = (RelativeLayout.LayoutParams) getLayoutParams()).topMargin = (paramInt1 - i);
        localLayoutParams.leftMargin = paramInt2;
        setLayoutParams(localLayoutParams);
        this.c.setText(paramString);
        LogUtil.d("BubbleView", "params.topMargin= " + localLayoutParams.topMargin + "params.leftMargin="
                + localLayoutParams.leftMargin);
        LogUtil.d("BubbleView", "top= " + paramInt1 + "   leftMargin=" + paramInt2
                + "((RelativeLayout) this.getParent()).getWidth()=" + ((RelativeLayout) getParent()).getWidth()
                + "   offset=" + i);
    }
}